import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
    name: 'fixedColumn'
})
export class FixedColumnPipe implements PipeTransform {
    transform(items: any[], fixedColumn: boolean): any[] {   
        return items? items.map((x,i)=>{
            return {value: x, index: i}
        }).filter(x=>x.value.fixedColumn == fixedColumn) : [];
    }
}